package top.infopub.mgr.bpa.dao;

import org.apache.ibatis.annotations.Param;
import top.infopub.model.bpa.BudgetBatchInfo;
import top.infopub.model.bpa.BudgetBatchInfoExample;

import java.util.List;

public interface BudgetBatchInfoDao {
    long countByExample(BudgetBatchInfoExample example);

    int deleteByExample(BudgetBatchInfoExample example);

    int deleteByPrimaryKey(String id);

    int insertBatch(List<BudgetBatchInfo> records);

    int insert(BudgetBatchInfo record);

    int insertSelective(BudgetBatchInfo record);

    BudgetBatchInfo selectOneByExample(BudgetBatchInfoExample example);

    List<BudgetBatchInfo> selectByExamplePaging(@Param("example") BudgetBatchInfoExample example, @Param("offset") int offset, @Param("limit") int limit);

    List<BudgetBatchInfo> selectByExample(BudgetBatchInfoExample example);

    BudgetBatchInfo selectByPrimaryKey(String id);

    List<BudgetBatchInfo> selectByGudgetId(String budgetId);

    int updateByExampleSelective(@Param("record") BudgetBatchInfo record, @Param("example") BudgetBatchInfoExample example);

    int updateByExample(@Param("record") BudgetBatchInfo record, @Param("example") BudgetBatchInfoExample example);

    int updateByPrimaryKeySelective(BudgetBatchInfo record);

    int updateByPrimaryKey(BudgetBatchInfo record);

    int deleteByBudgetId(@Param("budgetId") String budgetId);
}